#include <vector>
#include <fstream>
#include <iostream>

using namespace std;

void pourMilk(
  int from, int to,
  vector<int> capacities,
  vector<int> &milks
) {
  int toRemains = capacities[to] - milks[to];
  int amount = min(milks[from], toRemains);

  milks[from] -= amount;
  milks[to]   += amount;
}


vector<int> solution(
  vector<int> capacities, // 每个桶的容积
  vector<int> milks       // 每个桶里的牛奶
) {
  for (int i = 0; i < 100; ++i) {
    // From: i % 3
    // To  : (i + 1) % 3
    pourMilk(i % 3, (i + 1) % 3, capacities, milks);
    // 倒牛奶()
  }

  return milks;
}

int main() {
  ifstream ifs("Milks.in");

  for (int i = 0; i < 3; ++i) {
    string c;
    string m;
    ifs >> c >> m;
    cout << "c = " << c << "m = " << m << endl;
  }
}